package com.koron.order.concession.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.order.concession.bean.dto.ConcessionDto;
import com.koron.order.concession.bean.po.ConcessionPo;
import com.koron.order.concession.bean.query.ConcessionQuery;
import com.koron.order.concession.bean.vo.ConcessionVo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * 让步接收单信息主表(Concession)表服务接口
 *
 * @author zhouj
 * @since 2022-01-14 09:51:50
 */
public interface ConcessionService {

    ConcessionPo insertOrUpdate(SessionFactory factory, ConcessionDto concessionDto);

    int insert(SessionFactory factory, ConcessionPo concessionPo);

    int update(SessionFactory factory, ConcessionPo concessionPo);

    int deleteById(SessionFactory factory, String id);

    ConcessionPo queryById(SessionFactory factory, String id);

    PageInfo queryPageList(SessionFactory factory, ConcessionQuery concessionQuery, PageQuery pageQuery);

    List<ConcessionVo> queryList(SessionFactory factory, ConcessionQuery concessionQuery);

    int submitConcession(SessionFactory factory, String orderId, String status);

}
